home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
SOUND
/
RAVELUTL.ARJ
/
WDEFINE.MA
< prev
next >
Wrap
Text File
|
1989-03-25
|
929b
|
43 lines
@include \mh\wind.mh
#
# Demo of WDEFINE input window type.
#
# associated storage
uchar x[1]
riff openWindows()
int wd
# open DEFINE window, variable storage must be ??
# DEFINE window, map a list of "labels", i.e., strings
# to scalars. Upon input the topmost label is assigned
# the value 0, to label n-1.
# upX,upY
# lowX,lowY
# title string
# nolabels = n, number of input strings
# fieldsize = 0 must be 0
# nofields = 0 must be 0
# pointer to uchar array of size 1
wd = inputWindow(WDEFINE, 10, 20, 14, 30, "section", 3, 0, 0, &x)
# enter labels
void windowLabel(wd, "Asection", 0)
void windowLabel(wd, "Bsection", 1)
void windowLabel(wd, "Csection", 2)
# put up debug window to show changes
void outputWindow(WDEBUG,15,0,20,25,"printf") # halfway
end
vco testit()
int rval
void openWindows()
for(;;)
rest w
void printf("x = %d\n",x[0])
end
end